/**
 * 路由配置
 */
export default [
  {
    path: '/',
    name: 'main',
    component: () => import('@/views/main.vue'),
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/Home.vue')
      },
      {
        path: '/doc',
        name: 'doc',
        component: () => import('@/views/Document.vue')
      },
      {
        path: '/console',
        name: 'console',
        component: () => import('@/views/Home.vue')
      },
      {
        path: '/jsonUtil',
        name: 'jsonUtil',
        component: () => import('@/views/JsonUtil.vue')
      },
      {
        path: '/webssh',
        name: 'webssh',
        component: () => import('@/views/Webssh.vue')
      },
      {
        path: '/portUtil',
        name: 'portUtil',
        component: () => import('@/views/PortUtil.vue')
      }
    ]
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('@/views/About.vue')
  },
  {
    path: '/websshTerm',
    name: 'websshTerm',
    component: () => import('@/views/WebsshTerm.vue')
  },
  {
    path: '*',
    name: '404',
    component: () => import('@/views/error/404.vue')
  }
]
